﻿using System;
using Autodesk.Revit.DB;

namespace YArchitech.HVAC
{
	public static class ConnAlignmentFactory
	{
		public static ConnAlignment GetConnAlignment(ConnectDuctStyle fittingStyle, Document doc)
		{
			ConnAlignment result = null;
			switch (fittingStyle)
			{
			case ConnectDuctStyle.TShapeTee:
				result = new TShapeTeeAlignment(doc);
				break;
			case ConnectDuctStyle.RoundAngleTee:
				result = new RoundAngleTeeAlignment(doc);
				break;
			case ConnectDuctStyle.RightAngleTee:
				result = new RightAngleTeeAlignment(doc);
				break;
			case ConnectDuctStyle.IntubationTee:
				result = new IntubationTeeAlignment(doc);
				break;
			case ConnectDuctStyle.YShapeTee:
				result = new YShapeTeeAlignment(doc);
				break;
			case ConnectDuctStyle.RoundAngleCross:
				result = new RoundAngleCrossAlignment(doc);
				break;
			case ConnectDuctStyle.RightAngleCross:
				result = new RightAngleCrossAlignment(doc);
				break;
			case ConnectDuctStyle.IntubationCross:
				result = new IntubationCrossAlignment(doc);
				break;
			}
			return result;
		}
	}
}
